#include <iostream>

using namespace std;

int main(int argc, char const *argv[])
{
    int a, n;
    cin >> a >> n;

    int answer = 1;
    for(int i=0; i<n; i++)
        answer *= a;

    cout << answer << endl;

    return 0;
}
